stringForObject

fun stringForObject(obj: Any?, newlines: Boolean = false, linePrefix: String = "", maxLevels: Int = 3, includeGetters: Boolean = true): String

Converts the given object to a string representation that is appropriate to write to a log, or present in text form in general

Return

The string representation of the object.

Parameters

obj

The object to convert to string.

linePrefix

If non-null, specifies the string delimiter to use for newlines. If null then the string will be a single line with a semicolon delimiter